package org.lvgo.prototype;

/**
 * 形状抽象类
 *
 * @author lvgo
 * @version 1.0
 * @date 2018/9/19 17:08
 */
public class Shape implements Cloneable {

    private String name;

    public Shape(String name) {
        this.name = name;
    }

    /**
     * 打印图形信息
     */
    public void print() {
        System.out.println("我是" + name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
